/*
 *
 * All Rights Reserved.
 */
package com.model.demo.designmodel.strategy.pay;

/**
 * Order
 *
 * @author Liao Dongshan, 2019年06月12日
 *
 */
public class Order {
    private String uid;
    private String orderId;
    private double payMoney;

    public Order(String uid, String orderId, double payMoney) {
        this.uid = uid;
        this.orderId = orderId;
        this.payMoney = payMoney;
    }

    public MsgResult pay (String payKey){
        Payment payment = PayStrategy.getPayment(payKey);
        return  payment.pay(uid, payMoney);
    }
}
